﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InformationSystem.Utility
{
    /// <summary>
    /// 根据当前年份创建年级列表信息
    /// </summary>
    public class GradeUtility
    {
        public static IList<int> GetRightGradeInfo()
        {
            List<int> years = new List<int>();
            int currentyear = DateTime.Now.Year;
            for (int i = currentyear - 5; i < currentyear + 5; i++)
            {
                years.Add(i);
            }
            return years;
        }
    }
}
